<!-- links.TPL -->
MAMANA
{if $ads}
<table cellspacing="0" class="box" style="clear:both;">
<tr>
	<th width="30%">{$CATEGORY_URL} {$smarty.const.CATEGORY}</a> {$image_cat}</th>
	<th width="30%">{$AD_URL} {$smarty.const.TITLE}</a> {$image_title}</th>
	{foreach item=extra from=$EXTRA_CAPTION_ARRAY} 
		<th>{$extra.url}{$extra.caption|truncate:15:"...":true}</a> {$extra.sort_img}</th>
	{/foreach}
	<th width="10%">{$DATE_URL} {$smarty.const.DATE_ADDED}</a> {$image_date}</th>
	<th width="10%">{$EXPIREDATE_URL} {$smarty.const.LA_AD_EXPIRE}</a> {$image_expire}</th>
	<th width="20%">{$GRADE_URL} {$smarty.const.LA_GRADE}</a> {$image_grade}</th>
	<th width="5%">{$PICTURE_URL} {$smarty.const.PICTURE_TEXT}</a> {$image_picture}</th>
</tr>			  

{foreach item=ad from=$ads}  
<tr class="{cycle values=",alt"}">
<td class="category">{$ad.CATEGORYNAME}</td>
<td class="pointer"><a href="{$ad.LINK}" title="{$ad.TITLE|escape}">
{if $ad.SPECIAL}<b>{/if}{$ad.TITLE|truncate:35:"...":true}{if $ad.SPECIAL}</b>{/if}</a></td>
{*foreach item=extraval from=$ad.EXTRA_VALUES} 
		<td>{$extraval|truncate:20:"...":true}</td>
{/foreach*}
<td>{$ad.REGDATE}</td>
<td>{$ad.EXPIREDATE}</td>
<td>{$ad.GRADE}</td>
<td>{$ad.IMAGEYESNO}</td>
<!--
<td>{$ad.e_1.value|truncate:10:"...":true}</td></tr>
-->
{/foreach} 


<tr>
<td colspan="6" align="center">
{if $prev_url} 
	<a href="{$prev_url}" class="button nextPrev">&lt; {$smarty.const.PREVIOUS_ADS} {$NUM_PER_PAGE}</a> 
{else}
	
{/if}


{if $next_url}	
	<a href="{$next_url}" class="button nextPrev">{$smarty.const.NEXT_ADS} {$NUM_PER_PAGE} &gt;</a> 
{else}	
	
{/if}
</td>
</tr></table>
{elseif $ALLOWADS}
	<p>{$smarty.const.LA_NOT_YET_ADS}</p>
	<p>&nbsp;</p>	
	{if $IS_LOGGED_IN}
		<p><b><img src="layout_images/new/addad.gif" alt="{$smarty.const.LA_ADD_AD}" />
		<a href="item.php?catid={$catid}">{$smarty.const.LA_ADD_AD}</a></b></p>
	{else}
		<p><img src="layout_images/new/login.gif" alt="{$smarty.const.LA_LOGIN}" />
		{$smarty.const.LA_NOT_YET_ADS_MORE}</p>
	{/if}
	
	<p>&nbsp;</p>
	<p>&nbsp;</p>
{/if}
<!-- // links.TPL -->